package list;

public class Demo13 {
    public static void main(String[] args) {
        String str = "您好123ABC12ABCDEAKFHJKLAFDLKJAFDS";
        int[] counter = new int[26];
        for (int i=0; i<str.length(); i++){
            char ch = str.charAt(i);
            if(ch>='A' && ch<='Z'){
                counter[ch-'A']++;
            }
        }
        char c = 'A';
        for(int i:counter){
            System.out.println((c++) +":"+i);
        }
    }
}
